<?php

/*
 * Nibbleblog -
 * http://www.nibbleblog.com
 * Author Diego Najar

 * All Nibbleblog code is released under the GNU General Public License.
 * See COPYRIGHT.txt and LICENSE.txt.
 */

class Email {

	public static function send($args)
	{
//		$headers  = 'MIME-Version: 1.0'."\r\n";
//		$headers .= 'Content-type: text/html; charset=utf-8'."\r\n";
//		$headers .= 'To: '.$args['to']."\r\n";
//		$headers .= 'From: '.$args['from']."\r\n";

		$message = '<html>
						<head>
						</head>
						<body>
					<div style="margin: 0px auto; border: 1px solid #F1F1F1; padding: 10px;">
							<div style="font-size: 26px; padding: 10px; background-color: #F1F1F1;">Nibbleblog</div>
							'.$args['message'].'
						</div>
						</body>
					</html>';

		//_______________SAE_______________________
		//在这里写上你要发信的用户密码信息
		$username = '';
		$password = '';
		$mail = new SaeMail();
		return $mail->quickSend( $args['to'] ,
		$args['subject'] ,
		$message ,
		 $username ,
		 $password );


		//return mail($args['to'], $args['subject'], $message, $headers);
	}
}




?>